package cn.iocoder.yudao.module.jky.controller.admin.goodsattributevalue.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

/**
 * 商品属性值 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class GoodsAttributeValueBaseVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15553")
    private Integer goodsAttributeValueId;

    @Schema(description = "所属商品属性ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15553")
    @NotNull(message = "所属商品属性ID不能为空")
    private Short goodsAttributeId;

    @Schema(description = "商品属性值名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotNull(message = "商品属性值名称不能为空")
    private String name;

    @Schema(description = "商品属性值配图")
    private String img;

    @Schema(description = "排序 数字越大越在前", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序 数字越大越在前不能为空")
    private Integer sort;

    @Schema(description = "是否显示 Y显示 N不显示")
    private String isShow;

}
